# Copyright (c) 2022-2023, PostgreSQL Global Development Group

backend_sources += files(
  'conffiles.c',
  'guc.c',
  'guc_funcs.c',
  'guc_tables.c',
  'help_config.c',
  'pg_config.c',
  'pg_controldata.c',
  'pg_rusage.c',
  'ps_status.c',
  'queryenvironment.c',
  'rls.c',
  'sampling.c',
  'superuser.c',
  'timeout.c',
  'tzparser.c',
)

guc_scan = custom_target('guc_scan',
  input: 'guc-file.l',
  output: 'guc-file.c',
  command: flex_cmd)
generated_sources += guc_scan

# so we don't need to add . as an include dir for the whole backend
backend_link_with += static_library('guc-file',
  guc_scan,
  dependencies: [backend_code],
  include_directories: include_directories('.'),
  kwargs: internal_lib_args,
)

install_data('postgresql.conf.sample',
  install_dir: dir_data,
)
